<h1>Travel mileage List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Id number</th>
      <th>Airline</th>
      <th>Date issued</th>
      <th>Date valid</th>
      <th>Passenger</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($travel_mileage_list as $travel_mileage): ?>
    <tr>
      <td><a href="<?php echo url_for('travel_mileage/show?id='.$travel_mileage['id']) ?>"><?php echo $travel_mileage->getid() ?></a></td>
      <td><?php echo $travel_mileage->getid_number() ?></td>
      <td><?php echo $travel_mileage->getairline_id() ?></td>
      <td><?php echo $travel_mileage->getdate_issued() ?></td>
      <td><?php echo $travel_mileage->getdate_valid() ?></td>
      <td><?php echo $travel_mileage->getpassenger_id() ?></td>
      <td><?php echo $travel_mileage->getcreated_at() ?></td>
      <td><?php echo $travel_mileage->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('travel_mileage/new') ?>">New</a>
